#ifndef dq_EventCodes_h
#define dq_EventCodes_h

#include <utility/EventType.h>

namespace serika
{
	namespace dq
	{
		struct EventType
		{
			enum Enum
			{
				Persistence = ut::EventType::Custom
			};
		};

		struct LEC
		{
			enum Enum
			{
				PropertyTemplates = 0,	// userData->tmpls
				Item,	// userData->item
				ItemType,	// userData->itemTypes
				CreateItem, // userData->item
				ItemCategories, // userData->categories
				ItemList,	// userData->items
				TownList,	// userData->towns
				AlchemyList, // userData->alchemies
				ProductItem, // userData->item
				Material1Item, // userData->item
				Material2Item, // userData->item
				Material3Item, // userData->item
			};
		};

		struct UEC
		{
			enum Enum
			{
				RequestNewItem = 0,	//source->itemType
				ItemTabInit,
				ItemProperty,	// userData->property
				AddItemBtnClick,
				CreateItem,	// userData->item
				RequestPropertyTemplates,	// source->itemType
				SaveItem,
				RequestItemCategories,	// source->itemType
				RequestItemList,	// source->itemType
				RequestTownList,
				RequestItemProperties, // source->item
				RequestAlchemyList, 
			};
		};

		struct PEC
		{
			enum Enum
			{
				RequestProduct = 0, // source->itemId
				RequestMaterial1,	// source->itemId
				RequestMaterial2,	// source->itemId
				RequestMaterial3,	// source->itemId
			};
		};
	}
}

#endif
